﻿using Frame.Core.Models;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Frame.Core.IServices.Admin
{
    public interface IDeptService : IBaseService<Depts>
    {
        /// <summary>
        /// 获取部门树
        /// </summary>
        /// <returns></returns>
        Task<List<Depts>> GetDeptsAsync();

        /// <summary>
        /// 获取子菜单数
        /// </summary>
        /// <param name="parentID"></param>
        /// <returns></returns>
        Task<long> GetDeptParentIDCountById(int parentID);

        /// <summary>
        /// 获取权限引用的菜单数
        /// </summary>
        /// <param name="DeptsId"></param>
        /// <returns></returns>
        Task<long> GetDeptUsersCountById(int DeptsId);
    }
}
